import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EGuildWarehouseOper
    
    export  class EGuildWarehouseOper
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EGuildWarehouseOper
        {
            return new EGuildWarehouseOper(arg1);
        }

        public static __read(arg1: SerializeStream): EGuildWarehouseOper
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 6) 
            {
                throw new MarshalException();
            }
            return EGuildWarehouseOper.convert(loc1);
        }

        public static /* const */_EGuildWarehouseIn: int=0;

        public static /* const */_EGuildWarehouseOut: int=1;

        public static /* const */_EGuildWarehouseSellIn: int=2;

        public static /* const */_EGuildWarehouseSellOut: int=3;

        public static /* const */_EGuildWarehouseMove: int=4;

        public static /* const */_EGuildWarehouseExDrop: int=5;

        public /* var */__value: int;
    }
